package com.imgpro.constants;

public class RedisConstant {
    public static final String LOGIN_CODE_KEY = "login code:";

    public static final String LOGIN_TOKEN_KEY = "login:token:";

    public static final String SHOP_CACHE = "cache:shop:";
    public static final String SHOP_TYPE_CACHE = "cache:shop_types:";

    public static final long CACHE_SHOP_TTL = 30L;
//    等待其他人使用完pyImgPro的时间
    public static final long LOCK_TIMEOUT = 10L;
//    获取到进程自动释放的时间
    public static final long LEASE_TIME = 15L;

//    获取pyImgPro锁的前缀名
    public static final String LOCK_PYIMGPRO = "lock:pyImgPro:";

    public static final String QUEUE_NAME = "stream.toAI";
}
